/**   
 * Copyright © 2018 Zuxia. Tech Ltd. All rights reserved.
 * 
 * @Package: com.java46.struts2.base.entity 
 * @author: zuxia   
 * @date: 2018年7月4日 上午11:28:36 
 */
package com.java46.struts2.base.entity;

/** 
 * @ClassName: GenericResult 
 * @Description: 通用结果
 * @author: zuxia
 * @date: 2018年7月4日 上午11:28:36 
 */
public class GenericResult {
	// 当isSuccess值为true时给用户响应的数据封装在data
	// isSuccess值为false，将ExceptionInterceptor中捕捉到errorMessage的封装在此errorMessage属性
	private boolean isSuccess;
	private String errorMessage;
	private Object data;
	/**
	 * @return the isSuccess
	 */
	public boolean isSuccess() {
		return isSuccess;
	}
	/**
	 * @param isSuccess the isSuccess to set
	 */
	public void setSuccess(boolean isSuccess) {
		this.isSuccess = isSuccess;
	}
	/**
	 * @return the errorMessage
	 */
	public String getErrorMessage() {
		return errorMessage;
	}
	/**
	 * @param errorMessage the errorMessage to set
	 */
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	/**
	 * @return the data
	 */
	public Object getData() {
		return data;
	}
	/**
	 * @param data the data to set
	 */
	public void setData(Object data) {
		this.data = data;
	}
}
